package com.ggs.starbug.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Starbug
 * @since 2021-12-27
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("timer_task")
@ApiModel(value = "TimerTask对象", description = "")
public class TimerTask implements Serializable {

    @Serial
    private static final long serialVersionUID = -8683776030009708880L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String name;

    private String message;

    private String description;

    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    private String cron;

}
